package net.findkrypton.event;

import javafx.scene.input.MouseButton;
import net.findkrypton.entity.TextStateBase;
import net.jumpengine.Manager;
import net.jumpengine.inter.IControl;
import net.jumpengine.inter.IMouseEvent;

public class HelpMouseEvent implements IMouseEvent {
	private IControl focus;

	@Override
	public void click(int x, int y, MouseButton button) {
		TextStateBase base = Manager.getImageManager().FindBaseByPoint(x, y, TextStateBase.class);
		if(base!=null)base.getAction().handle(x, y, button, base);
	}

	@Override
	public void mousePressed(int x, int y, MouseButton button) {

	}

	@Override
	public void mouseReleased(int x, int y, MouseButton button) {

	}

	@Override
	public void mouseMove(int x, int y, MouseButton button) {

	}

	@Override
	public void setFocus(IControl control) {
		focus = control;
	}

	@Override
	public IControl getFocus() {
		return focus;
	}

}
